<template>
  <van-list
    v-model="loading"
    :finished="isfinished"
    finished-text="没有更多了"
  >
    <van-cell
      v-for="item in searchList"
      :key="item"
      :title="item"
      @click="handleSearchTipClick(item)"
    />
  </van-list>
</template>

<script>
export default {
  props: ["searchList"],
  emit: ["handleSearchTipClick"],
  data() {
    return {
      loading: false,
      isfinished: true,
    };
  },

  components: {},

  computed: {},

  methods: {
    //实时搜索列表点击事件，传值给父组件
    handleSearchTipClick(value) {
      this.$emit("handleSearchTipClick", value);
    },
  },
};
</script>

<style lang='less' scoped>
</style>